#ifndef _YamlConfiger_Digi_
#define _YamlConfiger_Digi_

#include "yaml.h"
#include <string>
#include "Rtypes.h"

class YamlConfiger
{
public:
    YamlConfiger(){};
    ~YamlConfiger(){};
    static YamlConfiger *GetInstance()
    {
        if (YamlConfiger::m_Instance == NULL)
            YamlConfiger::m_Instance = new YamlConfiger();
        return YamlConfiger::m_Instance;
    }
    void LoadConfiger(std::string);
    inline const YAML::Node* GetConfiger() const {return &m_Configer;}

private:
    static YamlConfiger* m_Instance;
    YAML::Node m_Configer;


};

#endif